<template>
  <div id="tmpl">
      //引入评论组件
    <comment :id="id"></comment>
  </div>
</template>

<script>
import comment from '../subcom/comment.vue';
export default {
    //注册评论组件
    components:{
        comment
    },
    data(){
        return{
            id:0
        }
    },
    created(){
        this.id=this.$route.params.id;
    }
}
</script>

<style scoped>

</style>
